<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
 * 申诉详情表
 */
class CreateAppealDescTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('appeal_desc', function (Blueprint $table) {
            $table->increments('id');
	        $table->integer('type')->comment('申诉类型');
	        $table->date('time')->comment('申诉日期');
	        $table->string('img_url')->comment('申诉照片')->nullable();
	        $table->integer('staff_id')->comment('员工id');
	        $table->integer('store_id')->comment('店铺id');
	        $table->integer('to_store_id')->comment('支援店铺id')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('appeal_desc');
    }
}
